package com.ybxx.asset.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.base.model.FeesType;
import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_asset_instrument")
public class Instrument extends BaseModel {
	@Id
	private String icode;
	@ManyToOne(targetEntity=Company.class,fetch=FetchType.LAZY)
	@JoinColumn(name="cid",referencedColumnName="cid") 
	private Company company;
	private String iname;
	private String jtime;
	private String addr;
	private String uyear;
	private String unit;
	private String cnum;
	private String bookvalue;
	private String accumulated;
	private String netbookvalue;
	private String descer;
	private String content;
	public String getIcode() {
		return icode;
	}
	public void setIcode(String icode) {
		this.icode = icode;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public String getIname() {
		return iname;
	}
	public void setIname(String iname) {
		this.iname = iname;
	}
	public String getJtime() {
		return jtime;
	}
	public void setJtime(String jtime) {
		this.jtime = jtime;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public String getUyear() {
		return uyear;
	}
	public void setUyear(String uyear) {
		this.uyear = uyear;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getCnum() {
		return cnum;
	}
	public void setCnum(String cnum) {
		if(StringUtils.isNotEmpty(cnum)){
			this.cnum = cnum;
		}
	}
	public String getBookvalue() {
		return bookvalue;
	}
	public void setBookvalue(String bookvalue) {
		if(StringUtils.isNotEmpty(bookvalue)){
			this.bookvalue = bookvalue;
		}
	}
	public String getAccumulated() {
		return accumulated;
	}
	public void setAccumulated(String accumulated) {
		if(StringUtils.isNotEmpty(accumulated)){
			this.accumulated = accumulated;
		}
	}
	public String getNetbookvalue() {
		return netbookvalue;
	}
	public void setNetbookvalue(String netbookvalue) {
		if(StringUtils.isNotEmpty(netbookvalue)){
			this.netbookvalue = netbookvalue;
		}
	}
	public String getDescer() {
		return descer;
	}
	public void setDescer(String descer) {
		this.descer = descer;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
	
}